package com.edu.service;


import com.edu.bean.Orders;

import java.util.List;

public interface OrdersService {
    //注意：此方法会返回生成的主键
    // 创建订单。这个返回值不再是返回的是影响的行数，而是返回的是该数据添加成功之后，订单orderId
    public int createOrders(Orders orders) throws Exception;
    public Orders getOrdersById(Integer orderId) throws Exception;

    public List<Orders> listOrdersByUserId(String userId) throws Exception;
    public int isTruePayment(Integer orderId) throws Exception;
}